(function(angular){

  var in_theaters = angular.module('in_theaters',['ngRoute']);
  in_theaters.config(['$routeProvider',function($routeProvider){
    $routeProvider.when('/in_theaters',{
      templateUrl:'in_theaters/in_theaters.html',
      controller:'in_theatersCtrl'
    })
  }]);
  //console.log(in_theaters);
  in_theaters.controller('in_theatersCtrl',[
    '$scope',
    '$http',
    function ($scope,$http) {
        $scope.loading = true;
        setTimeout(function () {
            $http.get('./in_theaters/data.json')
                .then(function (res){
                    $scope.loading = false;
                    $scope.data = res.data;
                });
        },1500);



  }])


})(angular);
